package com.burstly.lib.component.networkcomponent;

import com.burstly.lib.component.IAdaptorController;
import com.burstly.lib.component.IAdaptorController.IComponentQueueLifecycleListener;
import com.burstly.lib.component.IBurstlyAdaptor;
import com.burstly.lib.component.IInternalBurstlyAdListener;
import com.burstly.lib.network.beans.ResponseBean;
import com.burstly.lib.network.beans.ResponseBean.ResponseData;
import com.burstly.lib.network.request.RequestManager;
import com.burstly.lib.persistance.ResponseSaver;
import com.burstly.lib.ui.BurstlyView;
import com.burstly.lib.util.LoggerExt;
import java.util.Map;

public final class NetworkAwareControllerWrapper
  implements IAdaptorController
{
  static final String COMPONENT_NAME = "burstly";
  private static final LoggerExt LOG = LoggerExt.getInstance();
  private IAdaptorController mController;

  public NetworkAwareControllerWrapper(IAdaptorController paramIAdaptorController)
  {
    this.mController = paramIAdaptorController;
  }

  public void click()
  {
    this.mController.click();
  }

  public void destroy()
  {
    this.mController.destroy();
  }

  public IBurstlyAdaptor getAdaptor()
  {
    return this.mController.getAdaptor();
  }

  public IInternalBurstlyAdListener getBursltlyAdListener()
  {
    return this.mController.getBursltlyAdListener();
  }

  public ResponseBean.ResponseData getCurrentAdData()
  {
    return this.mController.getCurrentAdData();
  }

  public String getNetworkName()
  {
    return this.mController.getNetworkName();
  }

  public String getViewId()
  {
    return this.mController.getViewId();
  }

  public void hideComponent()
  {
    this.mController.hideComponent();
  }

  public boolean isPrefetchRequest()
  {
    return this.mController.isPrefetchRequest();
  }

  public void pause()
  {
    this.mController.pause();
  }

  public void resume()
  {
    this.mController.resume();
  }

  public void setBursltlyAdListener(IInternalBurstlyAdListener paramIInternalBurstlyAdListener)
  {
    this.mController.setBursltlyAdListener(paramIInternalBurstlyAdListener);
  }

  public void setClientTargetParams(Map<String, String> paramMap)
  {
    this.mController.setClientTargetParams(paramMap);
  }

  public void setCustomNetworkParams(Map<String, ?> paramMap)
  {
    this.mController.setCustomNetworkParams(paramMap);
  }

  public void setInterstitialMode(boolean paramBoolean)
  {
    this.mController.setInterstitialMode(paramBoolean);
  }

  public void setLifeCycleListener(IAdaptorController.IComponentQueueLifecycleListener paramIComponentQueueLifecycleListener)
  {
    this.mController.setLifeCycleListener(paramIComponentQueueLifecycleListener);
  }

  public void setParent(BurstlyView paramBurstlyView)
  {
    this.mController.setParent(paramBurstlyView);
  }

  public void setPrefetchedRequest(boolean paramBoolean)
  {
    this.mController.setPrefetchedRequest(paramBoolean);
  }

  public void setResponseSaver(ResponseSaver<ResponseBean> paramResponseSaver)
  {
    this.mController.setResponseSaver(paramResponseSaver);
  }

  public void showComponent()
  {
    this.mController.showComponent();
  }

  public void showPrecachedAd()
  {
    this.mController.showPrecachedAd();
  }

  public void start()
  {
    if (RequestManager.isOnline())
    {
      this.mController.start();
      return;
    }
    LOG.logWarning("Network-aware wrapper", "No network connection available. Can not start component lifecycle.", new Object[0]);
    getBursltlyAdListener().failedToDisplayAds();
  }

  public void stop()
  {
    this.mController.stop();
  }

  public String toString()
  {
    return this.mController.toString();
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.NetworkAwareControllerWrapper
 * JD-Core Version:    0.6.2
 */